package com.ase.leetcode;

/**
 * @author gyhstart
 * @create 2021/3/10 - 15:18
 * 百钱白鸡
 **/
public class leetcode {
    public static void main(String[] args) {
        for (int x = 0; x <= 100; x++) {
            for (int y = 1; y < 100 - x; y++) {
                int z = 100 - x - y;
                if ((x + y + z == 100) && (5 * x + 3 * y + z / 3 == 100) && (z % 3 == 0)) {
                    System.out.println(x + " " + y + " " + z);
                }
            }
        }
    }
}
